<?php
require_once 'config.php';

$id = $_GET["id"];
$text = $_GET["text"];

var_dump($id);
var_dump($text);

//编辑、更新语句
$sql = "UPDATE `liuyan` SET `text` = '$text' WHERE `liuyan`.`id` = $id;";

//执行更新
$conn->query($sql);

//跳回首页
header("Location:index.php");
?>